<?php

class News extends Module{

	public function __construct(){
		$this->author = "Jakub Šanda";
		$this->name = "Novinky";
		$this->presenter = "News";
		$this->version = "0.1";
		$this->params = "";
	}

	public function getSql(){
			
		dibi::query("CREATE TABLE IF NOT EXISTS `news` (
  				`id_news` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
  				`date` datetime NOT NULL,
  				`title` varchar(255) NOT NULL,
  				`content` text NOT NULL,
  				PRIMARY KEY (`id_news`)
				) ENGINE=InnoDB  DEFAULT CHARSET=utf8 AUTO_INCREMENT=0;
				");
			
	}

}

?>